import request from '@/util/request'
import { menus,menulist , menuadd, menuset,menuget,menudelete} from '@/constants/menuRequestUrl'

//获取菜单
export function menuselect(data) {
    return request({
        url: menus,
        method: 'post',
        data: data
    })
}

//查看单个菜单 信息
export function getmenu(data) {
    return request({
        url: menuget,
        method: 'get',
        parems: data
    })
}

//查询所有菜单
export function searchmenu(data) {
    return request({
        url: menulist,
        method: 'post',
        data: data
    })
}


//新增菜单
export function addmenu(data) {
    return request({
        url: menuadd,
        method: 'post',
        data: data
    })
}

//删除菜单
export function delectmenu(data) {
    return request({
        url: menudelete,
        method: 'post',
        data: data
    })
}


//编辑菜单
export function setmenu(data) {
    return request({
        url: menuset,
        method: 'post',
        data: data
    })
}